import Vue from 'vue'
import { timerConversionDate } from '@/filters'
export function fileType(_this, obj) {
	if (_this.title === '清算报告') {
		if ('liquInfoationReportId' in _this.fundFileInfo) {
			_this.fundFileInfo.liquInfoationReportId = { ..._this.fundFileInfo.liquInfoationReportId, ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		} else {
			_this.fundFileInfo.liquInfoationReportId = {}
			_this.fundFileInfo.liquInfoationReportId = { ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		}
		fileView(_this, _this.fundFileInfo.liquInfoationReportId)
	} else if (_this.title === '产品资料概要') {
		if ('productDataResume' in _this.fundFileInfo) {
			_this.fundFileInfo.productDataResume = { ..._this.fundFileInfo.productDataResume, ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		} else {
			_this.fundFileInfo.productDataResume = {}
			_this.fundFileInfo.productDataResume = { ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		}
		fileView(_this, _this.fundFileInfo.productDataResume)
	} else if (_this.title === '招募说明书摘要') {
		if ('enlistExplainRemark' in _this.fundFileInfo) {
			_this.fundFileInfo.enlistExplainRemark = { ..._this.fundFileInfo.enlistExplainRemark, ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		} else {
			_this.fundFileInfo.enlistExplainRemark = {}
			_this.fundFileInfo.enlistExplainRemark = { ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		}
		fileView(_this, _this.fundFileInfo.enlistExplainRemark)
	} else if (_this.title === '托管协议(募集文件)') {
		if ('trustAgreementId2' in _this.fundFileInfo) {
			_this.fundFileInfo.trustAgreementId2 = { ..._this.fundFileInfo.trustAgreementId2, ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		} else {
			_this.fundFileInfo.trustAgreementId2 = {}
			_this.fundFileInfo.trustAgreementId2 = { ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		}
		fileView(_this, _this.fundFileInfo.trustAgreementId2)
	} else if (_this.title === '基金合同摘要') {
		if (_this.fundFileInfo.fundContractRemark) {
			_this.fundFileInfo.fundContractRemark = { ..._this.fundFileInfo.fundContractRemark, ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		} else {
			_this.fundFileInfo.fundContractRemark = {}
			_this.fundFileInfo.fundContractRemark = { ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		}
		fileView(_this, _this.fundFileInfo.fundContractRemark)
	} else if (_this.title === '基金合同(募集文件)') {
		if (_this.fundFileInfo.fundContractId2) {
			_this.fundFileInfo.fundContractId2 = { ..._this.fundFileInfo.fundContractId2, ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		} else {
			_this.fundFileInfo.fundContractId2 = {}
			_this.fundFileInfo.fundContractId2 = { ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		}
		fileView(_this, _this.fundFileInfo.fundContractId2)
	} else if (_this.title === '成立批复') {
		if (_this.fundFileInfo.foundReplyId) {
			_this.fundFileInfo.foundReplyId = { ..._this.fundFileInfo.foundReplyId, ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		} else {
			_this.fundFileInfo.foundReplyId = {}
			_this.fundFileInfo.foundReplyId = { ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		}
		fileView(_this, _this.fundFileInfo.foundReplyId)
	} else if (_this.title === '延期募集批复') {
		if (_this.fundFileInfo.delayRaiseReplyId) {
			_this.fundFileInfo.delayRaiseReplyId = { ..._this.fundFileInfo.delayRaiseReplyId, ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		} else {
			_this.fundFileInfo.delayRaiseReplyId = {}
			_this.fundFileInfo.delayRaiseReplyId = { ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		}
		fileView(_this, _this.fundFileInfo.delayRaiseReplyId)
	} else if (_this.title === '变更注册批复') {
		if (_this.fundFileInfo.modifyLogonReplyId) {
			_this.fundFileInfo.modifyLogonReplyId = { ..._this.fundFileInfo.modifyLogonReplyId, ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		} else {
			_this.fundFileInfo.modifyLogonReplyId = {}
			_this.fundFileInfo.modifyLogonReplyId = { ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		}
		fileView(_this, _this.fundFileInfo.modifyLogonReplyId)
	} else if (_this.title === '募集注册批复') {
		if (_this.fundFileInfo.raiseLogonReplyId) {
			_this.fundFileInfo.raiseLogonReplyId = { ..._this.fundFileInfo.raiseLogonReplyId, ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		} else {
			_this.fundFileInfo.raiseLogonReplyId = {}
			_this.fundFileInfo.raiseLogonReplyId = { ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		}
		fileView(_this, _this.fundFileInfo.raiseLogonReplyId)
	} else if (_this.title === '证监会要求的其他文件.zip') {
		if (_this.fundFileInfo.otherMaterialsId10) {
			_this.fundFileInfo.otherMaterialsId10 = { ..._this.fundFileInfo.otherMaterialsId10, ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		} else {
			_this.fundFileInfo.otherMaterialsId10 = {}
			_this.fundFileInfo.otherMaterialsId10 = { ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		}
		fileView(_this, _this.fundFileInfo.otherMaterialsId10)
	} else if (_this.title === '认购发起份额的承诺函') {
		if (_this.fundFileInfo.subscribeShareLetterId) {
			_this.fundFileInfo.subscribeShareLetterId = { ..._this.fundFileInfo.subscribeShareLetterId, ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		} else {
			_this.fundFileInfo.subscribeShareLetterId = {}
			_this.fundFileInfo.subscribeShareLetterId = { ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		}
		fileView(_this, _this.fundFileInfo.subscribeShareLetterId)
	} else if (_this.title === '《基金合同填报指引》') {
		if (_this.fundFileInfo.fundContractFillId) {
			_this.fundFileInfo.fundContractFillId = { ..._this.fundFileInfo.fundContractFillId, ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		} else {
			_this.fundFileInfo.fundContractFillId = {}
			_this.fundFileInfo.fundContractFillId = { ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		}
		fileView(_this, _this.fundFileInfo.fundContractFillId)
	} else if (_this.title === '交易所无异议函') {
		if (_this.fundFileInfo.tradeNoActionLetterId) {
			_this.fundFileInfo.tradeNoActionLetterId = { ..._this.fundFileInfo.tradeNoActionLetterId, ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		} else {
			_this.fundFileInfo.tradeNoActionLetterId = {}
			_this.fundFileInfo.tradeNoActionLetterId = { ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		}
		fileView(_this, _this.fundFileInfo.tradeNoActionLetterId)
	} else if (_this.title === '指数使用协议') {
		if (_this.fundFileInfo.applyAgreementId) {
			_this.fundFileInfo.applyAgreementId = { ..._this.fundFileInfo.applyAgreementId, ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		} else {
			_this.fundFileInfo.applyAgreementId = {}
			_this.fundFileInfo.applyAgreementId = { ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		}
		fileView(_this, _this.fundFileInfo.applyAgreementId)
	} else if (_this.title === '《基金产品方案》') {
		if (_this.fundFileInfo.fundPlanId) {
			_this.fundFileInfo.fundPlanId = { ..._this.fundFileInfo.fundPlanId, ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		} else {
			_this.fundFileInfo.fundPlanId = {}
			_this.fundFileInfo.fundPlanId = { ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		}
		fileView(_this, _this.fundFileInfo.fundPlanId)
	} else if (_this.title === '《法律意见书》') {
		if (_this.fundFileInfo.lawProposalId) {
			_this.fundFileInfo.lawProposalId = { ..._this.fundFileInfo.lawProposalId, ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		} else {
			_this.fundFileInfo.lawProposalId = {}
			_this.fundFileInfo.lawProposalId = { ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		}
		fileView(_this, _this.fundFileInfo.lawProposalId)
	} else if (_this.title === '内部决议') {
		if (_this.fundFileInfo.interResultId) {
			_this.fundFileInfo.interResultId = { ..._this.fundFileInfo.interResultId, ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		} else {
			_this.fundFileInfo.interResultId = {}
			_this.fundFileInfo.interResultId = { ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		}
		fileView(_this, _this.fundFileInfo.interResultId)
	} else if (_this.title === '承诺函') {
		if ('commitmentLetterId' in _this.fundFileInfo) {
			_this.fundFileInfo.commitmentLetterId = { ..._this.fundFileInfo.commitmentLetterId, ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		} else {
			_this.fundFileInfo.commitmentLetterId = {}
			_this.fundFileInfo.commitmentLetterId = { ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		}
		fileView(_this, _this.fundFileInfo.commitmentLetterId)
	} else if (_this.title === '特殊承诺函') {
		if (_this.fundFileInfo.specialLetterId) {
			_this.fundFileInfo.specialLetterId = { ..._this.fundFileInfo.specialLetterId, ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		} else {
			_this.fundFileInfo.specialLetterId = {}
			_this.fundFileInfo.specialLetterId = { ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		}
		fileView(_this, _this.fundFileInfo.specialLetterId)
	} else if (_this.title === '申请报告') {
		if (_this.fundFileInfo.applyReportId) {
			_this.fundFileInfo.applyReportId = { ..._this.fundFileInfo.applyReportId, ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		} else {
			_this.fundFileInfo.applyReportId = {}
			_this.fundFileInfo.applyReportId = { ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		}
		fileView(_this, _this.fundFileInfo.applyReportId)
	} else if (_this.title === '基金合同(申请文件)') {
		if (_this.fundFileInfo.fundContractId) {
			_this.fundFileInfo.fundContractId = { ..._this.fundFileInfo.fundContractId, ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		} else {
			_this.fundFileInfo.fundContractId = {}
			_this.fundFileInfo.fundContractId = { ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		}
		fileView(_this, _this.fundFileInfo.fundContractId)
	} else if (_this.title === '托管协议(申请文件)') {
		if (_this.fundFileInfo.trustAgreementId) {
			_this.fundFileInfo.trustAgreementId = { ..._this.fundFileInfo.trustAgreementId, ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		} else {
			_this.fundFileInfo.trustAgreementId = {}
			_this.fundFileInfo.trustAgreementId = { ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		}
		fileView(_this, _this.fundFileInfo.trustAgreementId)
	} else if (_this.title === '招募说明书(申请文件)') {
		if (_this.fundFileInfo.enlistExplainId) {
			_this.fundFileInfo.enlistExplainId = { ..._this.fundFileInfo.enlistExplainId, ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		} else {
			_this.fundFileInfo.enlistExplainId = {}
			_this.fundFileInfo.enlistExplainId = { ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		}
		fileView(_this, _this.fundFileInfo.enlistExplainId)
	} else if (_this.title === '招募说明书(募集文件)') {
		if (_this.fundFileInfo.enlistExplainId2) {
			_this.fundFileInfo.enlistExplainId2 = { ..._this.fundFileInfo.enlistExplainId2, ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		} else {
			_this.fundFileInfo.enlistExplainId2 = {}
			_this.fundFileInfo.enlistExplainId2 = { ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		}
		fileView(_this, _this.fundFileInfo.enlistExplainId2)
	} else if (_this.title === '期货备忘录') {
		if (_this.fundFileInfo.otherMaterialsId9) {
			_this.fundFileInfo.otherMaterialsId9 = { ..._this.fundFileInfo.otherMaterialsId9, ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		} else {
			_this.fundFileInfo.otherMaterialsId9 = {}
			_this.fundFileInfo.otherMaterialsId9 = { ...fileParams(_this.fileTypeMsg, obj, _this.date1) }
		}
		fileView(_this, _this.fundFileInfo.otherMaterialsId9)
	}
}

// 插入文件对象
function fileParams(type, obj, date) {
	if (type === '盖章版') {
		return {
			sealedEffectiveDate: timerConversionDate(date || new Date()), // 生效日期
			sealedFileId: obj.fid, // 文件ID
			sealedTDate: timerConversionDate(new Date()), // 上传日期
			sealedFileName: obj.fname, // 文件名
			sealedFileMd5: obj.fmd5 // 文件fmd5
		}
	} else if (type === 'word版') {
		return {
			firstEffectiveDate: timerConversionDate(date || new Date()),
			firstFileId: obj.fid,
			firstTDate: timerConversionDate(new Date()),
			firstFileName: obj.fname, // 文件名
			firstFileMd5: obj.fmd5 // 文件fmd5
		}
	} else if (type === 'PDF版') {
		return {
			finalEffectiveDate: timerConversionDate(date || new Date()),
			finalFileId: obj.fid,
			finalTDate: timerConversionDate(new Date()),
			finalFileName: obj.fname, // 文件名
			finalFileMd5: obj.fmd5 // 文件fmd5
		}
	}
}

// 插入表格
function fileView(_this, obj) {
	_this.tableData.forEach(item => {
		item.typeName.forEach(items => {
			if (items.title === _this.title) {
				Vue.set(items, 'file', obj)
			}
		})
	})
}

// 删除操作
export function delFileType(_this, title, type) {
	_this.tableData.forEach(item => {
		item.typeName.forEach(items => {
			if (items.title === title) {
				if (type === '盖章版') {
					Vue.delete(items.file, 'sealedEffectiveDate')
					Vue.delete(items.file, 'sealedFileId')
					Vue.delete(items.file, 'sealedTDate')
					Vue.delete(items.file, 'sealedFileName')
					Vue.delete(items.file, 'sealedFileMd5')
				} else if (type === 'word版') {
					Vue.delete(items.file, 'firstEffectiveDate')
					Vue.delete(items.file, 'firstFileId')
					Vue.delete(items.file, 'firstTDate')
					Vue.delete(items.file, 'firstFileName')
					Vue.delete(items.file, 'firstFileMd5')
				} else if (type === 'PDF版') {
					Vue.delete(items.file, 'finalEffectiveDate')
					Vue.delete(items.file, 'finalFileId')
					Vue.delete(items.file, 'finalTDate')
					Vue.delete(items.file, 'finalFileName')
					Vue.delete(items.file, 'finalFileMd5')
				}
			}
		})
	})
	if (title === '清算报告') {
		deleteFileproty(_this.fundFileInfo.liquInfoationReportId, type)
	} else if (_this.title === '产品资料概要') {
		deleteFileproty(_this.fundFileInfo.productDataResume, type)
	} else if (_this.title === '招募说明书摘要') {
		deleteFileproty(_this.fundFileInfo.enlistExplainRemark, type)
	} else if (_this.title === '招募说明书(募集文件)') {
		deleteFileproty(_this.fundFileInfo.enlistExplainId2, type)
	} else if (_this.title === '托管协议(募集文件)') {
		deleteFileproty(_this.fundFileInfo.trustAgreementId2, type)
	} else if (_this.title === '基金合同摘要') {
		deleteFileproty(_this.fundFileInfo.fundContractRemark, type)
	} else if (_this.title === '基金合同(募集文件)') {
		deleteFileproty(_this.fundFileInfo.fundContractId2, type)
	} else if (_this.title === '成立批复') {
		deleteFileproty(_this.fundFileInfo.foundReplyId, type)
	} else if (_this.title === '延期募集批复') {
		deleteFileproty(_this.fundFileInfo.delayRaiseReplyId, type)
	} else if (_this.title === '变更注册批复') {
		deleteFileproty(_this.fundFileInfo.modifyLogonReplyId, type)
	} else if (_this.title === '募集注册批复') {
		deleteFileproty(_this.fundFileInfo.raiseLogonReplyId, type)
	} else if (_this.title === '证监会要求的其他文件.zip') {
		deleteFileproty(_this.fundFileInfo.otherMaterialsId10, type)
	} else if (_this.title === '认购发起份额的承诺函') {
		deleteFileproty(_this.fundFileInfo.subscribeShareLetterId, type)
	} else if (_this.title === '《基金合同填报指引》') {
		deleteFileproty(_this.fundFileInfo.fundContractFillId, type)
	} else if (_this.title === '交易所无异议函') {
		deleteFileproty(_this.fundFileInfo.tradeNoActionLetterId, type)
	} else if (_this.title === '指数使用协议') {
		deleteFileproty(_this.fundFileInfo.applyAgreementId, type)
	} else if (_this.title === '《基金产品方案》') {
		deleteFileproty(_this.fundFileInfo.fundPlanId, type)
	} else if (_this.title === '《法律意见书》') {
		deleteFileproty(_this.fundFileInfo.lawProposalId, type)
	} else if (_this.title === '内部决议') {
		deleteFileproty(_this.fundFileInfo.interResultId, type)
	} else if (_this.title === '承诺函') {
		deleteFileproty(_this.fundFileInfo.commitmentLetterId, type)
	} else if (_this.title === '特殊承诺函') {
		deleteFileproty(_this.fundFileInfo.specialLetterId, type)
	} else if (_this.title === '申请报告') {
		deleteFileproty(_this.fundFileInfo.applyReportId, type)
	} else if (_this.title === '基金合同(申请文件)') {
		deleteFileproty(_this.fundFileInfo.fundContractId, type)
	} else if (_this.title === '托管协议(申请文件)') {
		deleteFileproty(_this.fundFileInfo.trustAgreementId, type)
	} else if (_this.title === '招募说明书(申请文件)') {
		deleteFileproty(_this.fundFileInfo.enlistExplainId, type)
	} else if (_this.title === '期货备忘录') {
		deleteFileproty(_this.fundFileInfo.otherMaterialsId9, type)
	}
}

// 初始化数据时将数据插入数组
export function dataTree(_this) {
	if (_this.fundFileInfo.liquInfoationReportId) {
		forEachData(_this, '清算报告', 'liquInfoationReportId')
	}
	if (_this.fundFileInfo.productDataResume) {
		forEachData(_this, '产品资料概要', 'productDataResume')
	}
	if (_this.fundFileInfo.enlistExplainRemark) {
		forEachData(_this, '招募说明书摘要', 'enlistExplainRemark')
	}
	if (_this.fundFileInfo.enlistExplainId2) {
		forEachData(_this, '招募说明书(募集文件)', 'enlistExplainId2')
	}
	if (_this.fundFileInfo.trustAgreementId2) {
		forEachData(_this, '托管协议(募集文件)', 'trustAgreementId2')
	}
	if (_this.fundFileInfo.fundContractRemark) {
		forEachData(_this, '基金合同摘要', 'fundContractRemark')
	}
	if (_this.fundFileInfo.fundContractId2) {
		forEachData(_this, '基金合同(募集文件)', 'fundContractId2')
	}
	if (_this.fundFileInfo.foundReplyId) {
		forEachData(_this, '成立批复', 'foundReplyId')
	}
	if (_this.fundFileInfo.delayRaiseReplyId) {
		forEachData(_this, '延期募集批复', 'delayRaiseReplyId')
	}
	if (_this.fundFileInfo.modifyLogonReplyId) {
		forEachData(_this, '变更注册批复', 'modifyLogonReplyId')
	}
	if (_this.fundFileInfo.raiseLogonReplyId) {
		forEachData(_this, '募集注册批复', 'raiseLogonReplyId')
	}
	if (_this.fundFileInfo.otherMaterialsId10) {
		forEachData(_this, '证监会要求的其他文件.zip', 'otherMaterialsId10')
	}
	if (_this.fundFileInfo.subscribeShareLetterId) {
		forEachData(_this, '认购发起份额的承诺函', 'subscribeShareLetterId')
	}
	if (_this.fundFileInfo.fundContractFillId) {
		forEachData(_this, '《基金合同填报指引》', 'fundContractFillId')
	}
	if (_this.fundFileInfo.tradeNoActionLetterId) {
		forEachData(_this, '交易所无异议函', 'tradeNoActionLetterId')
	}
	if (_this.fundFileInfo.applyAgreementId) {
		forEachData(_this, '指数使用协议', 'applyAgreementId')
	}
	if (_this.fundFileInfo.fundPlanId) {
		forEachData(_this, '《基金产品方案》', 'fundPlanId')
	}
	if (_this.fundFileInfo.lawProposalId) {
		forEachData(_this, '《法律意见书》', 'lawProposalId')
	}
	if (_this.fundFileInfo.interResultId) {
		forEachData(_this, '内部决议', 'interResultId')
	}
	if (_this.fundFileInfo.specialLetterId) {
		forEachData(_this, '特殊承诺函', 'specialLetterId')
	}
	if (_this.fundFileInfo.applyReportId) {
		forEachData(_this, '申请报告', 'applyReportId')
	}
	if (_this.fundFileInfo.fundContractId) {
		forEachData(_this, '基金合同(申请文件)', 'fundContractId')
	}
	if (_this.fundFileInfo.otherMaterialsId9) {
		forEachData(_this, '期货备忘录', 'otherMaterialsId9')
	}
	if (_this.fundFileInfo.commitmentLetterId) {
		forEachData(_this, '承诺函', 'commitmentLetterId')
	}
	if (_this.fundFileInfo.enlistExplainId) {
		forEachData(_this, '招募说明书(申请文件)', 'enlistExplainId')
	}
	if (_this.fundFileInfo.trustAgreementId) {
		forEachData(_this, '托管协议(申请文件)', 'trustAgreementId')
	}
}
function forEachData(_this, title, type) {
	_this.tableData.forEach(item => {
		item.typeName.forEach(items => {
			if (items.title === title) {
				Vue.set(items, 'file', _this.fundFileInfo[type])
			}
		})
	})
}

// 删除对象属性
function deleteFileproty(type, obj) {
	if (type === '盖章版') {
		Vue.delete(obj, 'sealedEffectiveDate')
		Vue.delete(obj, 'sealedFileId')
		Vue.delete(obj, 'sealedTDate')
	} else if (type === 'word版') {
		Vue.delete(obj, 'firstEffectiveDate')
		Vue.delete(obj, 'firstFileId')
		Vue.delete(obj, 'firstTDate')
	} else if (type === 'PDF版') {
		Vue.delete(obj, 'finalEffectiveDate')
		Vue.delete(obj, 'finalFileId')
		Vue.delete(obj, 'finalTDate')
	}
}

